<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<meta content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
	<meta content="telephone=no" name="format-detection">
	<link rel="stylesheet" href="../css/global.css" />
	<link rel="stylesheet" href="../css/main.css" />
	<title>地址管理</title>
</head>
<body>
	<div class="all_top">
        <div class="all_top_main">
            <a href="javascript:history.go(-1);" class="all_top_back"></a>
            <p class="all_top_tit t_c">地址管理</p>
        </div>
    </div>
	<div class="address">
		<a href="add_address.html" class="address_top">
			添加新的收货地址
		</a>
		<ul>
			<li class="box">
				<div class="left_radio">
					<label for="name1" class="label_dot"></label>
					<input type="radio" class="hide" name="names" id="name1" />
				</div>
				<div class="box_flex1">
					<p>周某某</p>
					<p>1387777225</p>
					<p>浙江省杭州市江干区</p>
				</div>
				<a href="http://www.baidu.com" class="address_del_btn">删除</a>
			</li>
			<li class="box">
				<div class="left_radio">
					<label for="name1" class="label_dot"></label>
					<input type="radio" class="hide" name="names" id="name1" />
				</div>
				<div class="box_flex1">
					<p>周某某</p>
					<p>1387777225</p>
					<p>浙江省杭州市江干区</p>
				</div>
				<a href="http://www.baidu.com" class="address_del_btn">删除</a>
			</li>
		</ul>
	</div>
	<section class="pop_content">
		<div class="pop_table">
			<div class="pop_body">
				<div class="pop_main">
					<p class="pop_content_tit">确认删除地址吗？</p>
					<p>删除地址后将无法恢复</p>
					<div class="box">
						<div class="box_flex1 pop_content_btn pop_btn_cancel">
							取消
						</div>
						<div class="box_flex1 pop_content_btn pop_btn_sure">
							确定
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
</body>
</html>
<script type="text/javascript" src="../js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../js/public.js"></script>
<script type="text/javascript">
	$("input[type='checkbox']").prop("checked",false);
	$(".label_dot").on("click", function(){
		$(".label_dot").removeClass("on");
		$(this).addClass("on");
	});

	$(".address_del_btn").on("click", function(e){
		// 保存删除操作的链接，当点击弹窗里的确定删除时执行删除链接
		var _this = $(this).attr("href");
		e.preventDefault();
        $(".pop_content").show();
        $(".pop_btn_cancel").on("click", function(){
        	$(".pop_content").hide();
        });
        // 点击确定时 提交表单
        $(".pop_btn_sure").on("click", function(){
        	$(".pop_content").hide();
        	window.location.href = _this;
        });
	});
</script>